package homework.ObjectDemo;

public class StudentTest {
    public static void main(String[] args) {
        Student s1 = new Student("张三", "001", 18);
        Student s2 = new Student("李四", "002", 19);
        Student s3 = new Student("王五", "003", 20);

        System.out.println("s1.equals(s2): " + s1.equals(s2));
        System.out.println("s1.equals(s3): " + s1.equals(s3));
        System.out.println("s1.toString(): " + s1);
    }
}
